
#include "ShareMemory.hpp"
#include "Time.hpp"

int main()
{
    shm.GetShm();
    shm.AttachShm();
    struct data* image = (struct data*)shm.GetAddr();//还可以发结构化的信息，不仅仅可以发字符串
    char ch = 'A';
    while(ch <= 'Z')
    {
        strcpy(image->status,"最新");
        strcpy(image->lasttime,GetCurrTime().c_str());
        strcpy(image->image,"xxxxxxxxxxxxxx");
        sleep(1);
        // strinfo[ch - 'A'] = ch;
        ch++;
    }
    shm.DetachShm();
    return 0;
}